	
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<div class="entry-content">
			<?php 
			if ( has_category( 'produto') ){
				$imagem = get_image('imagens');
			}else{
				$imagem = get_the_post_thumbnail();
			}

			$category = get_the_category();
			$tipo = strtoupper($category[0]->cat_name);

			if($imagem):
				echo "<div class='img_container'>".$imagem."</div>";
			endif;
			?>
			<div class="title">
				<?php if (is_search() && $tipo): ?>
					<b><?php echo $tipo; ?></b> - 
				<?php endif; ?>
				<a href="<?php the_permalink(); ?>">
					<?php the_title(); ?>
				</a>
			</div>

<?php 		if (has_excerpt()){ 
				the_excerpt(); 
			}else{ ?>
<?					$content = substr(get_the_content(),0,545);
				$content = explode('\n',$content);
				foreach($content as $cont){
					echo '<p><span>'.$cont.'</span></p>';
				}
				echo '...';
			}
?>			<a class="leia" href="<?php the_permalink(); ?>">[Saiba mais]</a>
		</div><!-- .entry-content -->
	</article><!-- #post- --><?php //the_ID(); ?>
   
